package test

import (
	"cvevulner/models"
	"fmt"
	"testing"
)

func TestGetGiteOriginIssue(t *testing.T) {
	//issue, err := models.GetGiteOriginIssue("CVE-2020-15719")
	issue, err := models.GetGiteOriginIssue("CVE-2018-19541")
	if err != nil {
		t.Error(err)
	}
	loophole, err := issue.ParseToLoophole()
	if err != nil {
		t.Error(err)
	}
	t.Log(fmt.Sprintf("%#v", loophole))
}
